package com.example.springmvcdemo;

import org.springframework.web.bind.annotation.RequestMapping;


public class UserInfo {
    //传递对象
    private String userName;
    private Integer age;
    private String passWord;


    //默认会有无参的函数,尤其是写了有参的函数,就要写无参的
    public UserInfo(){

    }

    public UserInfo(String userName, Integer age, String passWord) {
        this.userName = userName;
        this.age = age;
        this.passWord = passWord;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "userName='" + userName + '\'' +
                ", age=" + age +
                ", passWord='" + passWord + '\'' +
                '}';
    }
}
